Use a 1k buffer for sniffing image formats, instead of 128 or 256 bytes.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Oct 2005 15:07:35 +0000 (15:07 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 3 Oct 2005 15:07:35 +0000 (15:07 +0000)
2005-10-03  Matthias Clasen  <mclasen@redhat.com>

* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file):
* gdk-pixbuf-loader.c: Use a 1k buffer for sniffing image formats,
instead of 128 or 256 bytes.  (#317225, Sebastien Bacher,
Dom Lachowicz)

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-animation.c
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/gdk-pixbuf-loader.c

index 780ea49a1f50bac7d766484db0683d1c107862ea..41b8b79467d4cc46eba3c6beb7161303235e18c5 100644 (file)
@@ -1,3 +1,11 @@
+2005-10-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): 
+       * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file): 
+       * gdk-pixbuf-loader.c: Use a 1k buffer for sniffing image formats,
+       instead of 128 or 256 bytes.  (#317225, Sebastien Bacher, 
+       Dom Lachowicz)
+
 2005-09-05  Matthias Clasen  <mclasen@redhat.com>
 
        * io-tga.c (parse_rle_data): Remove unused variable
index ad510bf2cd0930ab649c607d5be6272c43dca719..ad7e76fc9c85daa77be7ca86f89ca1f28b4cec32 100644 (file)
@@ -136,7 +136,7 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
        GdkPixbufAnimation *animation;
        int size;
        FILE *f;
-       guchar buffer [128];
+       guchar buffer [1024];
        GdkPixbufModule *image_module;
         gchar *display_name;
         gboolean locked = FALSE;
index 56dfefe627571d64e18749efb69a6d2069317a65..ea7894bfead97bd2737d87353eb4d5cbb0792267 100644 (file)
@@ -840,7 +840,7 @@ gdk_pixbuf_new_from_file (const char *filename,
        GdkPixbuf *pixbuf;
        int size;
        FILE *f;
-       guchar buffer[256];
+       guchar buffer[1024];
        GdkPixbufModule *image_module;
        gchar *display_name;
 
index 6f9d6461a30c863dccdc198873384c9c7afa8993..78689e58ebfc6bf82f18090b8b0dd724955e98d2 100644 (file)
@@ -52,7 +52,7 @@ static guint    pixbuf_loader_signals[LAST_SIGNAL] = { 0 };
 
 /* Internal data */
 
-#define LOADER_HEADER_SIZE 128
+#define LOADER_HEADER_SIZE 1024
 
 typedef struct
 {